{% extends 'base.html' %}


{% block tips %}
    <h3>编辑出版社信息</h3>
{% endblock tips %}


{% block content %}
    <div class="col-md-offset-2 col-md-6">
        <a href="{% url 'book:press_show' %}">
            <button type="button" class="btn btn-primary">展示出版社</button>
        </a>
        <form action="{% url 'book:press_edit' press.id %}" method="post">
            {% csrf_token %}

            {% for field in press_form %}
                {{ field.label }}
                {{ field }}
                <span class="text-danger">{{ field.errors.0 }}</span>
            {% endfor %}
            <button type="submit" class="btn btn-success pull-right">提交</button>
        </form>
    </div>
{% endblock content %}
